package org.mspring.mlog;

import org.hibernate.SessionFactory;
import org.mspring.mlog.service.AdService;
import org.mspring.mlog.service.AlbumService;
import org.mspring.mlog.service.AttachmentService;
import org.mspring.mlog.service.CatalogService;
import org.mspring.mlog.service.CommentService;
import org.mspring.mlog.service.InstallService;
import org.mspring.mlog.service.JobLogService;
import org.mspring.mlog.service.JobService;
import org.mspring.mlog.service.LinkService;
import org.mspring.mlog.service.LinkTypeService;
import org.mspring.mlog.service.PhotoService;
import org.mspring.mlog.service.PostAttachService;
import org.mspring.mlog.service.PostService;
import org.mspring.mlog.service.TagService;
import org.mspring.platform.config.ConfigService;
import org.mspring.platform.counter.CountService;
import org.mspring.platform.counter.CounterManager;
import org.mspring.platform.qiniu.QiniuStorageService;
import org.mspring.platform.security.service.TreeItemService;
import org.mspring.platform.security.service.UserService;
import org.mspring.platform.support.BeanFactory;

/**
 *
 * @author Gao Youbo
 * @since 2012-7-25
 */
public class ServiceFactory {

    public static SessionFactory getSessionFactory() {
        return BeanFactory.getBean(SessionFactory.class);
    }

    public static UserService getUserService() {
        return BeanFactory.getBean(UserService.class);
    }

    public static ConfigService getConfigService() {
        return BeanFactory.getBean(ConfigService.class);
    }

    public static TagService getTagService() {
        return BeanFactory.getBean(TagService.class);
    }

    public static CatalogService getCatalogService() {
        return BeanFactory.getBean(CatalogService.class);
    }

    public static PostService getPostService() {
        return BeanFactory.getBean(PostService.class);
    }

    public static CommentService getCommentService() {
        return BeanFactory.getBean(CommentService.class);
    }

    public static AlbumService getAlbumService() {
        return BeanFactory.getBean(AlbumService.class);
    }

    public static PhotoService getPhotoService() {
        return BeanFactory.getBean(PhotoService.class);
    }

    public static TreeItemService getTreeItemService() {
        return BeanFactory.getBean(TreeItemService.class);
    }

    public static LinkTypeService getLinkTypeService() {
        return BeanFactory.getBean(LinkTypeService.class);
    }

    public static LinkService getLinkService() {
        return BeanFactory.getBean(LinkService.class);
    }

    public static InstallService getInstallService() {
        return BeanFactory.getBean(InstallService.class);
    }

    public static JobService getJobService() {
        return BeanFactory.getBean(JobService.class);
    }

    public static JobLogService getJobLogService() {
        return BeanFactory.getBean(JobLogService.class);
    }

    public static AttachmentService getAttachmentService() {
        return BeanFactory.getBean(AttachmentService.class);
    }

    public static AdService getAdService() {
        return BeanFactory.getBean(AdService.class);
    }

    public static CounterManager getCounterManager() {
        return BeanFactory.getBean(CounterManager.class);
    }

    public static CountService getCountService() {
        return BeanFactory.getBean(CountService.class);
    }

    public static PostAttachService getPostAttachService() {
        return BeanFactory.getBean(PostAttachService.class);
    }

    public static QiniuStorageService getQiniuStorageService() {
        return BeanFactory.getBean(QiniuStorageService.class);
    }

}
